let modal = {
  /**
   * Modal.confirm(_this,{content: '提示语'}, function () {}, function () {});
   * */
  confirm: function (context, params, handlerFunc, backFunc) {
    var content = params.content ? params.content : '';
    var title = params.title ? params.title : '温馨提示';
    context.$Modal.confirm({
      title: title,
      content: content,
      onOk: () => {
        if (handlerFunc) {
          handlerFunc();
        }
      },
      onCancel: () => {
        if (backFunc) {
          backFunc();
        }
      }
    });
  },
};
export default modal;
